package com.river.springbootdemo.thinkingjava.reusing;

/**
 * @author chenxingyu
 * @date 2019/11/5 15:34
 */
class A {
    A(int i){
        System.out.println("A类空参构造器"+i);
    }
}
class B{
    B(int i){
        System.out.println("B类空参构造器"+i);
    }
}

public class C extends  A{
    C(int i){
        super(i);
        System.out.println("C类带参构造器");
    }
    B b = new B(2);

    public static void main(String[] args) {
        new C(1);
    }
}